package com.library.model.daoimple;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.library.model.dao.LoginDAO;
import com.library.model.dto.login.LoginDTO;

public class LoginDAOImple extends SqlMapClientDaoSupport implements LoginDAO{

	@Override
	public LoginDTO getLogin(LoginDTO dto) {
		return (LoginDTO) getSqlMapClientTemplate().queryForObject("LoginMap.getLogin",dto);
	}

	@Override
	public int getId(String id) {
		return (Integer)getSqlMapClientTemplate().queryForObject("LoginMap.getId",id);
	}
}
